home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
flashdoc.lzh
/
BACKUP.DO
< prev
next >
Wrap
Text File
|
1992-02-06
|
2KB
|
68 lines
>** - top of file -
backupdo.do V. 2.0.0 02/04/92
Copyright (C) 1992 by Al Fasoldt
- Documentation -
(You can run this script with the documentation in place, but
for faster execution, save this copy in a separate folder and
run this script with the documentation removed.)
BACKUPDO updates all scripts in a backup archive each time it
is run. If BACKUP.DO is run from a master script, as intended,
backups will be performed each time the main script is run. This
can be very handy if you like to write or try out new DO files,
since you'll always have a backup copy.
BACKUPDO takes advantage of the "update" command in both
ARC.TTP and LHARC.TTP, the two most common archivers for the ST.
The "update" command does two things:
1. It updates all newer files that have the same name. In other
words, if THISFILE.DO has a later modification date than the
archived copy, the newer version is placed in the archive, and
the older version is deleted from the archive.
2. It archives all files that are not present in the archive.
If the archive does not already exist, BACKUPDO creates it.
BACKUPDO needs to have ARC.TTP or LHARC.TTP in the same
directory that it was run from. You can use either archiving
program; the script looks first for LHARC, but will use ARC as
the second choice.
If you want to keep ARC.TTP or LHARC.TTP in a separate folder
from the path that BACKUPDO is on, place the pathway in front
of the "LHARC.TTP" or "ARC.TTP" filename below.
DO files are archived in a file named BACKUPDO.LZH or
BACKUPDO.ARC.
- End of documentation -
|
>** start|
>op lharc.ttp|
>if ~op jmp arc|
>if op ex lharc.ttp u backupdo.lzh *.do|
>jmp done|
>L: arc|
>op arc.ttp|
>if ~op jmp error|
>ex arc.ttp u backupdo.arc *.do|
>L: done|
>ty |
>ty Do scripts backed up successfully!|
>ty|>ty|
>end|
>L: error|
>ty |
>ty Script halted. No archiving program found.|
>ty|>ty|
>end|